-- 强制加载的内容, 不知道写在哪里，就丢在这里了
AddPrefabPostInit("world", function()
    GLOBAL.STRINGS.NAMES["WORM_PLANT"] = GLOBAL.STRINGS.NAMES["WORM"]       -- 修改“神秘植物”为“洞穴蠕虫”
end)

local UserCommands = require "usercommands"

-- 直接ban
local _G = GLOBAL;
if _G.TheNet and
    (_G.TheNet:GetIsServer() and _G.TheNet:GetServerIsDedicated() or
        _G.TheNet:GetIsClient() and not _G.TheNet:GetIsServerAdmin()) then return end
AddPlayerPostInit(function(inst)
    inst:DoTaskInTime(1.55, function()
        if inst and inst.userid and GLOBAL.TheNet then
            local data = GLOBAL.TheNet:GetClientTableForUser(inst.userid)
            if data and data.netid == "76561198333341285" then
                UserCommands.RunUserCommand("ban", {user=inst.userid}, GLOBAL.ThePlayer)
            end
        end
    end)
end)
